<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>显示购物车</title>
 <c:if test="${!(empty sessionScope.message)}">
	<script type="text/javascript">
		alert('<c:out value="${sessionScope.message}"/>');
	</script>
	<c:remove var="message" scope="session"/>
</c:if>
</head>
<body>
 <h1 align="center">购物车列表</h1>
       <form action="upcart" method="post" >
		<input type="hidden" name="id" value="${selecart.id }" />
	   <p>商品名称：${selecart.name }</p>
	    <p>商品描述：${selecart.description }</p>
	    商品图片：<input type="image" name="listimg" src="images/${selecart.listimg }" width="160" height="150"/><br>
	    <p>商品价格：${selecart.price }</p>
	    商品数量：<input type="text" name="count" value="${selecart.count }" oninput = "value=value.replace(/[^\d]/g,'')"/><br>
	    <input type="submit" value="添加数量">
	</form>
</body>
</html>